package myschool.test4;

import myschool.dao.StudentDao;
import myschool.entity.Student;
import myschool.util.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestDel {
    public static void main(String[] args) throws ParseException {

        SqlSession s= MyBatisUtil.get();
        StudentDao mapper=s.getMapper(StudentDao.class);

        long ids[]={214L,210L,208L,303L};
        int i = mapper.batchDel(ids);
        System.out.println(i);
        MyBatisUtil.close(s);
    }
}
